<template>
  <div>
    <!-- 用户名:<input type="text" placeholder="请输入用户名" /> <br />
    密 码:<input type="text" placeholder="请输入密码" /> -->
    <div>
      <button @click="comName = 'username'">账号密码填写</button>
      <button @click="comName = 'userinfo'">个人信息填写</button>
    </div>
    <!-- <username></username>
    <br />
    <userinfo></userinfo> -->
    <component :is="comName"></component>
  </div>
</template>

<script>
import username from "./components/UserName.vue";
import userinfo from "./components/UserInfo.vue";
export default {
  components: {
    username,
    userinfo,
  },
  data() {
    return {
      comName: "username",
    };
  },
};
</script>

<style>
</style>